<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

final class Pages extends BIT_Model
{
	public static $class_name = __CLASS__;
	
	protected $id;
	
	protected $slug;
	
	protected $html;
	
	protected $updated;
	
	protected $updatedby;
	
	protected $page;
	
	private $db = "";
	
	function __construct()
	{
		parent::__construct();
	}

	function getPageTitle(){
		return $this->page; 
	}

	function getPageSlug(){
		return $this->slug;
	}

	function getPageBySlug($slug){
		$db = get_instance()->db;
		$pages = $db->where('slug', $slug)->limit(1)->get('pages')->result();
		return $pages[0];
	}
}